package com.free.space;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 项目启动类：程序入口
 * exclude = {org.activiti.spring.boot.SecurityAutoConfiguration.class} 避免报以下异常
 *		org.springframework.beans.factory.BeanCreationException:
 * 		Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource
 * 		[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]:
 * 		Invocation of init method failed; nested
 */
@SpringBootApplication(exclude = {org.activiti.spring.boot.SecurityAutoConfiguration.class})
public class FreePlatformApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(FreePlatformApplication.class, args);
	}
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(this.getClass());
	}
}
